// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_MST_SUPPLIER_SCOPE
// * CreateDate    : 2014-06-05 18:30:19
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:19
// * LastChanger   : 2014-06-05 18:30:19
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class MstSupplierScopeEntity : EntityBase
    {
        public MstSupplierScopeTable TableSchema
        {
            get
            {
                return MstSupplierScopeTable.Current;
            }
		}
		
		public MstSupplierScopeEntity()
        {

        }
		
		public MstSupplierScopeEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.SupplierId = Convert.ToString(CommonFunctions.ToObject(dr["SUPPLIER_ID"]));
			this.SupplierScopeNo = Convert.ToString(CommonFunctions.ToObject(dr["SUPPLIER_SCOPE_NO"]));
			this.SupplierScopeName = Convert.ToString(CommonFunctions.ToObject(dr["SUPPLIER_SCOPE_NAME"]));
        }
		
		public MstSupplierScopeEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.SupplierId = Convert.ToString(CommonFunctions.ToObject(dr["SUPPLIER_ID"]));
			this.SupplierScopeNo = Convert.ToString(CommonFunctions.ToObject(dr["SUPPLIER_SCOPE_NO"]));
			this.SupplierScopeName = Convert.ToString(CommonFunctions.ToObject(dr["SUPPLIER_SCOPE_NAME"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return MstSupplierScopeTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string SupplierId
        {
            get { return Convert.ToString(GetData(MstSupplierScopeTable.C_SUPPLIER_ID)); }
            set { SetData(MstSupplierScopeTable.C_SUPPLIER_ID, value); }
        }
		
        [DataMember]
        public string SupplierScopeNo
        {
            get { return Convert.ToString(GetData(MstSupplierScopeTable.C_SUPPLIER_SCOPE_NO)); }
            set { SetData(MstSupplierScopeTable.C_SUPPLIER_SCOPE_NO, value); }
        }
		
        [DataMember]
        public string SupplierScopeName
        {
            get { return Convert.ToString(GetData(MstSupplierScopeTable.C_SUPPLIER_SCOPE_NAME)); }
            set { SetData(MstSupplierScopeTable.C_SUPPLIER_SCOPE_NAME, value); }
        }
		
		#endregion
	}
	
	
}	

